export default {
	redirectTo: (url) => {
		let temp = url.replace("hyb_o2o", uni.storage.get("pathname"));
		uni.redirectTo({
			url: temp,
			fail: (err) => {
				uni.redirectTo({
					url: url
				})
			}
		})
	},
	
	
	navigateTo: (url) => {
		let temp = url.replace("hyb_o2o", uni.storage.get("pathname"));
		uni.navigateTo({
			url: temp,
			fail: (err) => {
				uni.navigateTo({
					url: url
				})
			}
		})
	},
	
	
	reLaunch: (url) => {
		let temp = url.replace("hyb_o2o", uni.storage.get("pathname"));
		uni.reLaunch({
			url: temp,
			fail: (err) => {
				uni.reLaunch({
					url: url
				})
			}
		})
	},
}
